Smush\Core\Url_Utils A

Total Complexity 56
Dependencies 2
Dependents 18
Total lines 277
Lines of code 176
Logical lines of code 102
Comment lines 35
Methods 19
Properties 2

Methods 19

Method Rating Maintainability Complexity Lines of code
_get_image_dimensions()
A
53 10 24
make_media_url_relative()
S
60 4 13
get_scaled_image_url()
S
59 4 13
guess_dimensions_from_image_url()
S
62 4 11
get_url_without_dimensions()
S
56 3 18
url_has_200_response()
S
63 4 10
get_url_content_type_header()
S
63 3 11
url_to_path()
S
63 3 11
is_external_url()
S
66 3 9
get_extension()
S
68 2 7
get_url_scheme()
S
70 2 6
get_query_vars()
S
65 2 9
get_image_dimensions()
S
67 2 8
should_fetch_external_image_dimensions()
S
77 2 3
getimagesize()
S
68 2 7
get_content_url()
S
72 2 6
is_relative()
S
77 2 3
__construct()
S
80 1 3
normalize_url()
S
74 1 4